from stack_test.baseserialziers import BaseSerilaizer


class UserSerialzier(BaseSerilaizer):
    """
        用户序列化器
    """
    def validate(self, attrs):
        print('validate')
        return attrs

    def create(self, validated_data):
        print('create')
        return self.validated_data

    def update(self, instance, validated_data):
        print('update')
        return instance